/**
 * Perform the element default action.
 *
 * @param {JSEvent} event the event that triggered the action
 *
 * @properties={typeid:24,uuid:"3794F104-3397-47A0-9D6B-D0E25F8D3991"}
 */
function btn_volver(event) {
	
	databaseManager.saveData();
	forms.Inicio.elements.tab_mostrar.removeAllTabs();
	forms.Inicio.elements.tab_mostrar.addTab(forms.VENDEDOR);
	
}

/**
 * Perform the element default action.
 *
 * @param {JSEvent} event the event that triggered the action
 *
 * @properties={typeid:24,uuid:"F385DEB5-3A4C-49BA-9E9B-FB5E1B5229FA"}
 */
function btn_baja_vendedor(event) {
		
		var success = plugins.dialogs.showWarningDialog("Eliminar Registro","¿Está seguro de querer eliminar este registro?","Aceptar", "Candelar");
		if (success == "Aceptar"){
			databaseManager.revertEditedRecords();
			foundset.deleteRecord(foundset.getSelectedRecord());
			forms.Inicio.elements.tab_mostrar.removeAllTabs();
			forms.Inicio.elements.tab_mostrar.addTab(forms.VENDEDOR);
		
		}else{
			return;
		}
	}
